function every(ele, arr = []) {
    for (let i = 0;i < arr.length;i++) {
        if (arr[i] < ele) return false;
    }
    return true;
}
//PS:如果严格遵照题意，条件语句应该改为if (arr[i] <= ele)
console.log(every(10, [10, 20, 30]))   // true
console.log(every(20, [10, 3, 30]))   // false